StoreEngine\Addons\Stripe\StripeService D

Total Complexity 128
Dependencies 23
Dependents 10
Total lines 1,146
Lines of code 693
Logical lines of code 251
Comment lines 304
Methods 47
Properties 11

Methods 47

Method Rating Maintainability Complexity Lines of code
create_payment_intent()
A
40 10 56
get_payment_method()
S
51 6 25
init_settings()
S
54 6 20
detach_payment_method_from_customer()
S
53 5 22
get_customer()
S
53 5 21
format_balance_fee()
S
58 5 15
update_payment_method()
S
55 4 18
attach_payment_method_to_customer()
S
55 4 18
is_card_payment_method()
S
65 5 9
get_stripe_amount()
S
59 4 14
should_detach_payment_method_from_customer()
S
62 4 13
create_payment_intent_and_charge_for_subscription()
S
49 2 29
validate_publishable_key()
S
61 3 12
create_subscription()
S
52 2 26
create_price()
S
53 2 23
create_and_confirm_setup_intent()
S
54 2 21
create_charge()
S
55 2 20
create_customer()
S
56 2 18
create_product()
S
56 2 18
create_webhook()
S
56 2 18
update_payment_intent()
S
57 2 17
capture_payment()
S
57 2 17
resume_subscription()
S
57 2 17
is_reusable_payment_method()
S
77 3 3
is_stripe_configured()
S
64 3 10
get_payment_intent()
S
58 2 15
cancel_subscription()
S
58 2 15
create_setup_intent()
S
58 2 15
get_setup_intent()
S
58 2 15
get_webhook()
S
58 2 15
get_setup_intents()
S
58 2 15
list_subscriptions()
S
58 2 15
search_subscription()
S
65 3 9
retrieve_subscription()
S
58 2 15
get_minimum_amount()
S
70 2 6
is_payment_method_object()
S
78 2 3
init()
S
71 2 6
__construct()
S
67 2 8
get_balance_history()
S
69 2 7
refund()
S
64 2 10
validate_keys()
S
63 2 10
create_product_and_subscription()
S
60 1 13
getClient()
S
82 1 3
no_decimal_currencies()
S
80 1 3
three_decimal_currencies()
S
80 1 3
get_currency_minimum_charges()
S
80 1 3
get_subscription_current_period_info()
S
66 1 9